﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataLayer;

namespace DataLayer {
    public class DAL {
        public DAOFactory Factory {
            get { return factory; }
        }

        public static DAL getInstance() {
            if(instance == null)
                instance = new DAL();
            return instance;
        }

        private DAL() { factory = DAOFactory.getInstance(); } // forbid construction

        private static DAL instance;
        private static DAOFactory factory;

    }
}
